﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Login.aspx.cs" Inherits="Account_Login" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .buttonLogin
        {
            cursor: pointer;
        }
    </style>
    <script type="text/javascript">
        function LoginClient() {
            document.getElementById('<%=btnLoginServer.ClientID%>').click();
        }
    </script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div id="divWelcome" runat="server" style="display: none">
        <h1>Welcome </h1>
    </div>
    <div id="Login" runat="server" style="display: block">
        <h2>
            Log In
        </h2>
        <div>
            <b>Username: </b>
        </div>
        <div style="padding-top: 10px">
            <asp:TextBox ID="txt_user" placeholder="tên đăng nhập" runat="server"></asp:TextBox></div>
        <div style="padding-top: 15px">
            <b>Password: </b>
        </div>
        <div style="padding-top: 10px">
            <asp:TextBox ID="txt_pass" placeholder="mật khẩu" TextMode="Password" runat="server"></asp:TextBox></div>
        <div style="display: none; color: Red" id="strError" runat="server">
            Sai tên đăng nhập hoặc mật khẩu</div>
        <a id="A1" onclick="LoginClient()" runat="server">
            <img src="~/Images/btnLogin.png" alt="alt" class="buttonLogin" id="btnLogin" runat="server"
                width="100" height="35" style="padding-top: 20px" />
        </a>
        <asp:Button ID="btnLoginServer" Style="display: none" runat="server" OnClick="btnLoginServer_Click" />
    </div>
</asp:Content>
